package A1_4;

import java.time.LocalDate;

public class Credit implements Payment{
    private String number;
    private String type;
    private LocalDate expireDate;
    private double amount;

    public Credit(String number, String type, LocalDate expireDate, double amount) {
        this.number = number;
        this.type = type;
        this.expireDate = expireDate;
        this.amount = amount;
    }

    @Override
    public double getAmount() {
        return amount;
    }
}
